/**
 * 公共配置文件
 */
import $config from '../../config'


const configDict = {
	development: {
		baseURL: 'http://localhost:4000'
	},
	production: {
		baseURL: $config.baseURL
	}
}

const currentConfigKey = process.env.NODE_ENV
const isDev = process.env.NODE_ENV === 'development'
const isTest = process.env.NODE_ENV === 'development'

/* const configObj = {
	isDevelop: (isDev || isTest),
	...configDict[currentConfigKey],
	// h5模式宽高
	canvasH5Width: 1920,
	canvasH5Height: 1080,
	pageModeList: [
	// 	{
	// 	value: 'h5',
	// 	label: 'H5',
	// 	disabled: false
	// }, {
	// 	value: 'longPage',
	// 	label: '长页H5',
	// 	disabled: false
	// }, {
	// 	name: 'relativePage',
	// 	label: '排版图文',
	// 	disabled: true
	// }, 
	{
		value: 'pc',
		label: 'PC页面',
		disabled: true
	}]
} */

const configObj={
	isDevelop: (isDev||isTest),
	...configDict[currentConfigKey],
	leftPanelWidth: 332,
	screenPixelWidth: 1920,
	screenPixelHeight: 1080,
	editorWrapPanelWidth: 2320,
	editorWrapPanelHeight: 1480,
	thumbnailWidth: 190,
	thumbnailHeight: 110,
	canvasPCWidth: 1920,
	canvasPCHeight: 1080,
}

export default configObj
